const path = require("path");
//less文件的路径
const vantTheme = path.resolve(__dirname, "./src/static/vant-reset.less");

module.exports = {
    // 基本路径
    publicPath: "./",
    // 输出文件目录
    outputDir: "dist",
    productionSourceMap: false,
    devServer: {
        port: 9696,
        open: true
    },
    css: {
        loaderOptions: {
            less: {
                lessOptions: {
                    modifyVars: {
                        hack: `true; @import "${vantTheme}";`
                    }
                }
            }
        }
    }
};
